import React, {useState, createContext} from 'react';
import IndexMainHeader from "../../components/indexMain/indexMainHeader/indexMainHeader";
import TweetsList from './tweetsList';
export const PostContext = createContext({mypost:"",setPost:()=>{}})
export function IndexMain() {
    const [mypost,setPost]=useState("")

    return (
      <>
          <PostContext.Provider value={{mypost,setPost}}>
          <IndexMainHeader ></IndexMainHeader>
          <TweetsList type={0} showImg={true}></TweetsList>
          </PostContext.Provider>
      </>
    );
}
